<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%@ include file="/common/taglibs.jsp" %>
<html>
<head>
    <meta charset="utf-8">
    <title>合约管理</title>

</head>
<style>
    /**内容超出 出现滚动条 **/
    .bui-stdmod-body {
        overflow-x: hidden;
        overflow-y: auto;
    }

</style>
<body>
<%@ include file="/common/head.builive.inc.jsp" %>
<div class="demo-content">
    <div class="row">
        <div class="span24">
            <form id="searchForm1" class="form-horizontal" tabindex="0" style="outline: none;">
                <div class="row">
                    <div class="control-group span8">
                        <label class="control-label">合约名称：</label>
                        <div class="controls">
                            <input type="text" name="contractName" class="control-text">
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">合约类型：</label>
                        <div class="controls">
                            <input type="text" name="contractType" class="control-text">
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">矿机类型：</label>
                        <div class="controls">
                            <select name="machineTypeId" class="machineTypeId"></select>
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">结算周期：</label>
                        <div class="controls">
                            <input type="text" name="settlementCycle" class="control-text">
                        </div>
                    </div>
                    <div class="control-group span8">
                        <label class="control-label">合约周期：</label>
                        <div class="controls">
                            <input type="text" name="contractCycle" class="control-text">
                        </div>
                    </div>
                    <div class="form-actions span2">
                        <button id="btnSearch" type="submit" class="button button-primary">搜索</button>
                    </div>
                </div>

            </form>

        </div>
    </div>
    <div class="search-grid-container">
        <div id="contractGrid">
        </div>
    </div>
</div>
<!-- 此节点内部的内容会在弹出框内显示,默认隐藏此节点-->

<div id="contractDialogContent" style="display: none;">
    <form id="EditForm" class="form-horizontal ">
        <div class="row">
            <div class="control-group span14">
                <label class="control-label">合约名称：</label>
                <div class="controls">
                    <input type="hidden" name="id"/>
                    <input type="text" class="input-normal control-text" data-rules="{required : true}"
                           name="contractName">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">合约类型：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{required : true}"
                           name="contractType">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">售价：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true}"
                           name="price">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">结算周期：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{required : true}"
                           name="settlementCycle">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">合约周期：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{required : true}"
                           name="contractCycle">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">收益发放时间：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text calendar" data-rules="{required : true}"
                           name="incomePaymentTime">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">矿机类型：</label>
                <div class="controls">
                    <select name="machineTypeId"></select>
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">算力：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true}"
                           name="computingPower">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">电费：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true}"
                           name="electricityFee">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">管理费：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true} "
                           name="managementCost">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">交割时间：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text calendar" name="deliveryTime">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">上线时间：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text calendar" name="onlineTime">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">总算力：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true} " name="total">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">库存：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true} " name="stock">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">最小购买份数：</label>
                <div class="controls">
                    <input type="text" class="input-normal control-text" data-rules="{number : true} "
                           name="minimumNumber">
                </div>
            </div>
            <div class="control-group span14">
                <label class="control-label">内容：</label>
                <div class="control control-row4 input-large">
                    <textarea style="width:330px" name="content"></textarea>
                </div>
            </div>
            <div class="control-group span24">
                <label class="control-label">风险提示：</label>
                <div class="control control-row4 input-large">
                    <textarea style="width:330px" name="riskHints"></textarea>
                </div>
            </div>
        </div>
    </form>

</div>
<div id="tipDialog" style="display: none;">

</div>
<script src="js/contract.js"></script>
<script src="https://unpkg.com/wangeditor@3.1.1/release/wangEditor.min.js"></script>
</body>
</html>